// 版权归 瞄你个汪 所有。使用本代码应遵守相关法律法规和Apache 2.0开源许可要求。
package top.geeke.database.seed;

import top.geeke.constants.AppConstPool;
import top.geeke.entity.SysPos;
import top.geeke.toolkit.supertable.seed.SuperSeedData;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 系统职位表种子数据
 * </p>
 *
 * @author 瞄你个汪
 * @since 2024/5/26 8:13
 */
public class SysPosSeedData implements SuperSeedData<SysPos> {
    @Override
    public List<SysPos> getSeedData() {
        return new ArrayList<SysPos>(){{
            add(newInstance(1300000000101L, "党委书记", "dwsj", "党委书记", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000102L, "董事长", "dsz", "董事长", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000103L, "副董事长", "fdsz", "副董事长", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000104L, "总经理", "zjl", "总经理", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000105L, "副总经理", "fzjl", "副总经理", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000106L, "部门经理", "bmjl", "部门经理", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000107L, "部门副经理", "bmfjl", "部门副经理", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000108L, "主任", "zr", "主任", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000109L, "副主任", "fzr", "副主任", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000110L, "局长", "jz", "局长", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000111L, "副局长", "fjz", "副局长", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000112L, "科长", "kz", "科长", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000113L, "副科长", "fkz", "副科长", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000114L, "财务", "cw", "财务", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000115L, "职员", "zy", "职员", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000116L, "其他", "qt", "其他", AppConstPool.PRIMARY_ID));
        }};
    }

    public SysPos newInstance(Long id, String name, String code, String remark, Long tenantId) {
        SysPos pos = new SysPos();
        pos.setId(id);
        pos.setPosName(name);
        pos.setPosCode(code);
        pos.setRemark(remark);
        pos.setTenantId(tenantId);
        return pos;
    }
}
